package com.neutech.constant;

import com.mysql.cj.jdbc.Driver;
import com.zaxxer.hikari.HikariDataSource;
import org.apache.commons.dbutils.QueryRunner;


import java.util.Scanner;

import static com.neutech.constant.DBUtil.datasource;

public class Constant {

    public static final QueryRunner queryRuner=new QueryRunner(datasource);


    public static final Scanner input = new Scanner(System.in);
    public static final HikariDataSource dateSource = new HikariDataSource();

    static {

        dateSource.setDriverClassName("com.mysql.cj.jdbc.Driver");
        dateSource.setJdbcUrl("jdbc:mysql:///elm");
        dateSource.setUsername("root");
        dateSource.setPassword("123456");
    }
}
